package com.mall.product.service.impl;

import com.mall.entity.TbItmeSpec;
import com.mall.product.mapper.ItemSpecMapper;
import com.mall.product.service.ItemSpecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: W
 * @date: 2021/07/27/10:42
 * Other:
 */
@Service
public class ItemSpecServiceImpl implements ItemSpecService {

    @Autowired
    private ItemSpecMapper itemSpecMapper;

    @Override
    public List<TbItmeSpec> findItemSpecByGoodsId(Long goodsId) {
        return itemSpecMapper.findByGoodsId(goodsId);
    }

    @Override
    public TbItmeSpec findById(Long id) {
        return itemSpecMapper.findById(id);
    }

    @Override
    public void update(TbItmeSpec itemSpec) {
        itemSpecMapper.update(itemSpec);
    }
}
